package com.itheima.mybackstudy.study4final;

public class Cat {
    String name="汤姆";
    final int age=18;

    public Cat() {
    }

    public Cat(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    final public void method(){
        System.out.println("嘿嘿嘿，我最帅");
    }
}
